class FeedController < ApplicationController

  def rss
    @articles = Article.find(:all, :order => 'created_at DESC', :limit => 10)
    render_rss_feed(@articles, :feed => {:title => "홍길동의 블로그", :url => "http://localhost:3000/"},
                               :item => {:title => :title,
                                         :description => :body_html,
                                         :pub_date => :created_at,
                                         :permalink => :id})
  end
end
